// JavaScript Document
function showLoginType(){
	var loginType=document.getElementById("login_type_list");
	var loginTypeStyle=loginType.style;
	var loginListShow="position: absolute; margin: 20px 0pt 0pt; display: none;";
	if(loginTypeStyle==loginListShow){
		loginType.style="position: absolute; margin: 20px 0pt 0pt;";
	}else{
		loginType.style=loginListShow;
	}
	
}
function onChangeFocurs(obj){
	if(obj.value==""){
		obj.style.color="#999999";
	}else{
		obj.value="";
		obj.style.color="#000000";
	}
}
//var type='HTML';

//异步发送请求
function sendRequestPost(uri,objPost,objShow){
	var ajax=Ajax("HTML");
	if(!objPost)
		objPost=new Object;
	
	var context='';
	var addData=true;
	ajax.post(uri,objPost,function(data){
		if(objShow){
			if(typeof(data)=='object')
			{
				if(addData)
				{
					context=objShow.innerHTML;
					objShow.innerHTML+=data.context;
					addData=false;
				}
			}
			if(typeof(data)=='string')
			{
				addData=true;
				objShow.innerHTML=context+data;
			}
		}else{
			alert("Wrong Object");
		}
		
	});
}

function sendRequestGet(uri,objShow){
	var ajax=Ajax("HTML");
	ajax.get(uri,function(data){
		if(objShow){
			objShow.innerHTML=data;
		}else{
			alert("Wrong Object");
		}
		
	});
}
